<template>
  <div class="page_user_setting system-set-view">
    <div class="navbar-wrap">
      <div class="Navbarold">
        <nav>
          <div class="navbar-logo">
            <a class="navbar-back" href="javascript:history.back();"></a>
          </div>
          <div class="navbar-title">泽枫影城</div>
          <div class="navbar-button"></div>
        </nav>
      </div>
    </div>

    <div class="setting-detail">
      <div style="height: inherit">
        <div class="item-box">
          <div class="common">
            <span class="label">账号ID</span
            ><span class="text" style="color: rgb(121, 125, 130)">{{
              userInfo.userId
            }}</span>
          </div>
        </div>
        <div class="item-box">
          <div class="common">
            <span class="label">登录密码</span
            ><span class="text" style="color: rgb(121, 125, 130)">修改</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
          <div class="common feedback">
            <span class="label">安全密码</span
            ><span class="text" style="color: rgb(121, 125, 130)">未设置</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
        </div>
        <div class="item-box">
          <div class="common">
            <span class="label">手机号码</span
            ><span class="text" style="color: rgb(121, 125, 130)">{{
              userInfo.nickName
            }}</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
          <div class="common feedback">
            <span class="label">软件版本</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
          <div class="common feedback">
            <span class="label">隐私政策</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
          <div class="common feedback">
            <span class="label">用户协议</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
          <div class="common feedback">
            <span class="label">意见反馈</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
        </div>
        <div class="item-box">
          <div class="common">
            <span class="label">清除缓存</span><span class="text">0.1 KB</span>
          </div>
        </div>
        <div class="item-box">
          <div class="common">
            <span class="label">注销账号</span
            ><img
              src=""
              width="7px"
              height="12px"
              alt=""
            />
          </div>
        </div>
        <div class="logout-btn" @click="loginOutHandler">退出登录</div>
      </div>
      <!---->
      <div
        style="
          padding: 15px;
          background: rgb(255, 255, 255);
          height: 250px;
          display: none;
        "
      >
        <textarea
          placeholder="请留下您的宝贵意见，我们将努力改进"
          class="feedback-area"
        ></textarea>
        <div class="textarea-length">0/500</div>
      </div>
    </div>

    <Modal
      :modal_toggle="this.modal_toggle"
      @loginOutWrapHandler="this.changeloginOutWrapHandler"
      @cancleloginOutWrapHandler="this.cancleloginOutWrapHandler"
      title="退出"
      text="是否退出泽枫影城"
    />
    <div class="v-modal" v-show="mark_wrap" style="z-index: 2012"></div>
  </div>
</template>
<script>
import Modal from "./modal.vue";
import Vue from "vue";
import { Toast } from "vant";
Vue.use(Toast);
export default {
  components: {
    Modal,
  },
  data() {
    return {
      userInfo: {},
      mark_wrap: false,
      modal_toggle: false,
      clear_cache: false,
    };
  },
  created() {
    this.userInfo = JSON.parse(window.sessionStorage.getItem("loginInfo")).data;
  },
  methods: {
    loginOutHandler() {
      this.mark_wrap = true;
      this.modal_toggle = true;
    },
    loginOutWrapHandler() {
      this.mark_wrap = false;
      this.modal_toggle = true;
    },
    changeloginOutWrapHandler(Boolean) {
      this.mark_wrap = Boolean;
      this.modal_toggle = Boolean;
      Toast("退出成功!");
      window.sessionStorage.removeItem("loginInfo");
      this.$router.replace("/");
    },
    cancleloginOutWrapHandler(Boolean) {
      this.mark_wrap = Boolean;
      this.modal_toggle = Boolean;
    },
  },
};
</script>
<style scoped>
.item-box .common img {
  width: 7px;
  aspect-ratio: auto 7 / 12;
  height: 12px;
}
/*  */
.Navbarold {
  height: 1rem;
  background-color: #e54847 !important;
  display: -webkit-box;
  height: 0.76rem;
  overflow: hidden;
  position: relative;
  padding: 6px;
  box-sizing: content-box;
}
.Navbarold .navbar-back:after {
  position: absolute;
  width: 13px;
  height: 13px;
  top: 16px;
  left: 12px;
  transform: rotate(45deg);
  content: "";
  border: 2px solid #fff;
  border-width: 0 0 2px 2px;
}
.Navbarold .navbar-back {
  width: 36px;
  height: 36px;
  display: block;
  z-index: 999;
}

.Navbarold .navbar-back:after {
  position: absolute;
  width: 13px;
  height: 13px;
  top: 16px;
  left: 12px;
  transform: rotate(45deg);
}

.Navbarold nav {
  width: 100%;
  display: -webkit-box;
}

.Navbarold .navbar-title {
  -webkit-box-flex: 1;
  color: #fff;
  font-size: 18px;
  text-align: center;
  line-height: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

.Navbarold .navbar-logo {
  width: 2rem;
  background-size: 37%;
}

.Navbarold .navbar-button {
  position: relative;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.Navbarold .navbar-button .nav-btn {
  text-align: right;
  margin-right: 6px;
}

.Navbarold .navbar-button .nav-btn img {
  width: 17px;
  height: 16px;
}

.nav-list {
  top: 0.96rem;
  right: 0.24rem;
  width: 2.2rem;
  background: #fff;
}

.nav-list .nav-item {
  box-sizing: content-box;
  height: 0.91rem;
}

.nav-list .nav-item a {
  line-height: 0.91rem;
  font-size: 0.3rem;
  letter-spacing: 0;
}

.link {
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: transparent;
}

.link-disable {
  color: #ccc !important;
}
/*  */
.system-set-view {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 15px;
  background: #f4f4f4;
  /* padding-top: 54px */
}

.system-set-view .header:after {
  border: none !important;
}

.system-set-view .setting-detail {
  padding-bottom: 49px;
}

.system-set-view .setting-detail .version {
  text-align: center;
  color: #bdc0c5;
  font-size: 13px;
  margin-top: 23px;
}

.system-set-view .setting-detail .version-view {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  text-align: center;
  padding-top: 129px;
  /* background-image: url(../img/iconReproduction@2x.cf0263be.jpg); */
  background-size: cover;
  background-position: bottom;
}

.system-set-view .setting-detail .version-view img {
  vertical-align: bottom;
}

.system-set-view .setting-detail .version-view .version-text {
  font-size: 13px;
  color: #bdc0c5;
  margin-top: 15px;
  line-height: 13px;
}

.system-set-view .setting-detail .version-view .footer {
  font-size: 11px;
  color: #bdc0c5;
  position: absolute;
  bottom: 30px;
  margin: 0 auto;
  width: 100%;
}

.system-set-view .common {
  padding: 0 14px 0 15px;
  height: 49px;
  line-height: 49px;
  background: #fff;
  color: #191a1b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.system-set-view .common img {
  padding-left: 14px;
}

.system-set-view .item-box {
  background: #fff;
  margin-bottom: 10px;
}

.system-set-view .item-box .label {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.system-set-view .item-box .text {
  font-size: 13px;
  color: #bdc0c5;
}

.system-set-view .logout-btn {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #e54847;
  height: 49px;
  line-height: 49px;
  background: #fff;
}

.system-set-view .logout-btn:active {
  background: #efefef;
}

.system-set-view .localstore-box,
.system-set-view .logout-box {
  background: #f4f4f4;
}

.system-set-view .localstore-box a,
.system-set-view .localstore-box li,
.system-set-view .logout-box a,
.system-set-view .logout-box li {
  font-size: 15px;
}

/*  */
.v-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #000;
}
</style>